package com.zangchat.controller;

import java.util.List;

import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.common.core.controller.BaseController;
import com.common.core.domain.AjaxResult;
import com.zangchat.domain.ChatLabel;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import com.zangchat.service.IChatLabelService;

/**
 * 标签Controller
 * 
 * @author ruoyi
 * @date 2020-07-24
 */
@Controller
@RequestMapping("/zangchat/label")
public class ChatLabelController extends BaseController
{
    private String prefix = "zangchat/label";

    @Autowired
    private IChatLabelService chatLabelService;
    @RequestMapping("/selectChatLabel")
    public AjaxResult selectChatLabel(){

        List<ChatLabel> labelList = chatLabelService.getBaseMapper().selectList(new QueryWrapper<ChatLabel>(new ChatLabel()));
        return AjaxResult.success(labelList);
    }

}
